package com.yidu.qianfeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yidu.qianfeng.common.bean.finance.FinanceCondition;
import com.yidu.qianfeng.common.bean.finance.Income;
import com.yidu.qianfeng.common.bean.finance.Spend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("spendMapper")
@Mapper
public interface SpendMapper extends BaseMapper<Spend> {
    //新增收入
    public int insertSpend(Spend spend);
    //分页查询开支
    public List<Spend> selectAllSpend(int page, int limit);
    //开支数据数量
    public int selectSpendCount();
    //根据条件查询开支
    public List<Spend> selectSpendByCondition(FinanceCondition condition);
}
